<?php
namespace App\Services;

use App\Helpers\Api\MiniProgramTrait;

class SafeCheckService {
    use MiniProgramTrait;

    public static function handle($content) {
        if (!$content)
            return false;
        $self = new self();
        $app = $self->miniProgram();
        $result = $app->content_security->checkText($content);
        return $result['errcode'] == 0 ? false : true;
    }

}
